package org.sq;

import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.content.SharedPreferences.Editor;
import android.os.Bundle;
import android.os.Handler;

public class SplashActivity extends Activity {

	private static final int SPLASH_DISPLAY_TIME = 1000; /*
														 * 1 second for debug, 3
														 * seconds for release
														 */

	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.splash);

		new Handler().postDelayed(new Runnable() {

			public void run() {

				Intent mainIntent = new Intent(SplashActivity.this,
						WelcomeActivity.class);
				SplashActivity.this.startActivity(mainIntent);

				SplashActivity.this.finish();
				overridePendingTransition(R.anim.mainfadein,
						R.anim.splashfadeout);
			}
		}, SPLASH_DISPLAY_TIME);
	}
}